package com.rose.datax.dataxadmin.entity;

import lombok.Data;

@Data
public class JSONResult<T> {
    private T data;
    private String code;
    private String msg;

    public JSONResult() {
        this.code = "0";
        this.msg = "操作成功!";
    }

    public JSONResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public JSONResult(T data) {
        this.data = data;
        this.code = "0";
        this.msg = "操作成功!";
    }
}
